import {createApp} from 'vue'
import "amfe-flexible/index.js";
import './style.less'
import router from "./router/index.js";
import 'vant/es/toast/style';
import 'vant/es/image-preview/style';
import 'vant/es/dialog/style';
import {createPinia} from "pinia"
import VConsole from 'vconsole'
const vConsole = new VConsole()
// import {init,} from 'dingtalk-mock-sdk';
// // import openLink from 'dingtalk-jsapi/api/biz/util/openLink'
// // import
// init({
//     // 远程MOCK数据平台token - AnyMock
//     token: 'TcU40lE0fFMck4WnJ7ttoINtjhMYgFhr',
//     // 是否开启jsapi-mock
//     jsapiMock: true, // 默认为true
//     httpMock: false, // 默认为false
// });
const pinia = createPinia()

import App from "./App.vue"

window.onerror=()=>{
    console.log("123123")
}
window.onbeforeunload=()=>{
        return "确定离开吗";
}
createApp(App).use(pinia).use(router).mount('#app')
